package exe;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class GetMax {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a = 0;
        System.out.println("请输入10个数：");
        int max =0;

        while (a < 10) {
            int c = in.nextInt();
            if(a==0){
                max=c;
            }else if (c > max) {
                max = c;
            }
            a++;
        }
        System.out.println("最大的数" + max);
    }
}